package com.kgis.fm.business.access.service;


import java.util.List;

import com.kgis.aip.platform.access.common.service.AbstractExecutiveAccessService;
import com.kgis.fm.business.model.Connectivity;
import com.kgis.kp.model.Model;
/**
 * 
 * @author zhxiaomiao
 *
 */
public interface ConnectivityAccessService<T extends Model> extends AbstractExecutiveAccessService<T>{
	/**
	 * 根据fid、fno查询单条CONNECTIVITY_N表中记录
	 * @param fno
	 * @param fid
	 * @return
	 */
	T findByFnoFid(int fno,long fid);
	/**
	 * 查询与设施两个node有关联的记录
	 * @param fno
	 * @param fid
	 * @return
	 */
	List<T> findRelatedFeaturesByFnoFid(int fno,long fid);
	
	
	List<Connectivity> findRelatedFeatureByNodes(long node1Value,long node2Value,long fid);
	
}
